package com.cw.service;

import com.cw.pojo.TbContent;
import com.cw.pojo.TbContentCategory;

import java.util.List;

public interface ContentService {
    List<TbContentCategory> getContentCategoryInfo(String name);

    void addContentCategory(TbContentCategory tbContentCategory);

    TbContentCategory getContentCategory(Long id);

    void updateContentCategory(TbContentCategory tbContentCategory);

    void deleteContentCategory(Long[] ids);

    List<TbContent> getContentInfo();

    List<TbContentCategory> getCategory();

    void addContent(TbContent tbContent);

    TbContent getContent(Long id);

    void updateContent(TbContent tbContent);

    void deleteContent(Long[] ids);

    List<TbContent> getContentList(Long categoryId);
}
